package snapex.core;

@SuppressWarnings("serial")
public class RecordNotFoundException extends SnapexApplicationException {

	private String detailMessage;
	
	public RecordNotFoundException(String message, Throwable cause) {
		super(message, cause);
	}

	public RecordNotFoundException(String message) {
		super(message);
	}
	
	public RecordNotFoundException(Class clazz, Object id) {
		super(null);
		this.detailMessage = new StringBuffer().append(clazz.getSimpleName()).append("(").append(id.toString()).append(") Not Found").toString();
	}
	
	@Override
	public String getMessage() {
		return this.detailMessage;
	}	
}
